<template>
	<view>
		<view class="uni-padding-wrap uni-common-mt">
			<view>
				<scroll-view scroll-y="true" class="scroll-Y">
					<view v-for="item in listsV" :key="item.id" class="scroll-view-item_H">
						<view class="commodyPic">
							<image :src="item.src" mode="aspectFill"></image>
						</view>
						<view style="padding: 20rpx 40rpx;flex: 1;">
							<view class="commodyName">{{item.name}}</view>
							<view class="commodyIntro">{{item.intro}}</view>
							<view class="commodyPrice">
								<view class="">
									<text>￥{{item.price}}</text>
									<text>单买￥{{item.originprice}}</text>
								</view>
								<image class="add" src="../../static/shopping/assemble.png" mode=""></image>
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		name:'listCommoditiesVertical',
		props:['listsV'],
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="less">
	.scroll-Y {
		height: 600rpx;
		padding: 0 20rpx;
	}

	.scroll-view-item_H {
		display: flex;
		background: #FFFFFF;
		border-radius: 20rpx;
		border: 1px solid #f2f2f2;
		width: 692rpx;  
		height: 202rpx;
		margin: 30rpx 0rpx;
		.commodyPic{
			image{
				width: 223rpx;
				height: 202rpx;
			}			
		}
		.commodyName{
			font-size: 26rpx;
			font-weight: 600;
			width: 400rpx;
			overflow:hidden; //超出的文本隐藏
			text-overflow:ellipsis; //溢出用省略号显示
			white-space:nowrap; //溢出不换行
		}
		
		.commodyIntro{
			font-size: 24rpx;
			color: #999;
			width: 400rpx;
			line-height: 50rpx;
			overflow:hidden; //超出的文本隐藏
			text-overflow:ellipsis; //溢出用省略号显示
			white-space:nowrap; //溢出不换行
		}
		
		.commodyPrice{
			display: flex;
			justify-content: space-between;
			margin-top: 20rpx;
			text:nth-child(1){
				color: #FF7F38;
				font-size: 32rpx;
				font-weight: 600;
			}
			text:nth-child(2){
				margin-left: 20rpx;
				color: #999;
				font-size: 24rpx;
			}
		}
	}
	
	.add{
		margin-top: 10rpx;
		width: 117rpx;
		height: 43rpx;
	}
</style>